home *** CD-ROM | disk | FTP | other *** search
- As many people keep asking for the control and escape sequences
- of the vtxx series, I have put SOME of them together in this
- summary.
-
- For the full command set or any other details (especially on
- graphics) it is better to dig up a manual somewhere
- or CALL DEC(!) (usually DEC-Direct)
- and have a manual sent (They actually do it).
-
-
- The folowing sequences are written within < > and using spaces
- for easier reading. DO NOT type the spaces or the < > unless
- they are explicitly given as "space" or "<", ">" respectively.
- The term chr(n), where n is a value of 0 through 255, denotes a
- character with that decimal value.
-
- The letter P followed by a label (or just "n") stands for a
- numerical value (ascii digits i.e. 25). A parameter can be
- omitted, in which case it will assume a certain default
- value (denoted as D:n). If a sequence can take more than
- one parameter (given as p followed by a label) then the
- paramters are separated by semicolons (;).
-
- mnemonic 7bit equivalent 8bit equivalent
- ------------ --------------- ---------------
- BEL (sound beeper) <chr(7)> <chr(7)>
- BS (backspace) <chr(8)> <chr(8)>
- HT (tab) <chr(9)> <chr(9)>
- LF (line feed) <chr(10)> <chr(10)>
- FF (form feed) <chr(12)> <chr(12)>
- CR (cariage return) <chr(13)> <chr(13)>
- SO (shift out,G1->GL) <chr(14)> <chr(14)>
- SI (shift in, G0->GL) <chr(15)> <chr(15)>
- DC1 (xon (dev ctrl 1)) <chr(17)> <chr(17)>
- DC3 (xoff(dev ctrl 2)) <chr(19)> <chr(19)>
- ESC <chr(27)> <chr(27)>
- IND (index) <ESC D> <chr(132)>
- NEL (next line) <ESC E> <chr(133)>
- RI (reverse index) <ESC M> <chr(141)>
- SS2 (single shift 2) <ESC N> <chr(142)>
- SS3 (single shift 3) <ESC O> <chr(143)>
- DCS (dev ctrl string) <ESC P> <chr(144)>
- CSI <ESC [> <chr(155)>
- ST (string terminator)<ESC \> <chr(156)>
-
- Note: the 8bit equivalents are only possible on the vt2xx and
- vt3xx terminals. They can always be sent TO the termial
- but will only be sent FROM the terminal if in 8bit
- control mode.
-
-
- The columns 1, 1a, 2 and 3 give the availability of that
- sequence on the vt100/101, vt102/131/132, vt2x0 and vt3x0
- terminals respectively.
-
- Control commands sent TO the terminal:
-
- sequence atcion 1 1a 2 3
- ------------- -------------------------------- - - - -
- <CSI Pn A> cursor up (D:1) * * * *
- <CSI Pn B> cursor down (D:1) * * * *
- <CSI Pn C> cursor right (D:1) * * * *
- <CSI Pn C> cursor left (D:1) * * * *
- <CSI H> cursor home (top left corner) * * * *
- <CSI Pline ; Pcolumn H>
- set cursor to line and column * * * *
-
- <CSI Ptop ; Pbottom r>
- set top and bottom lines of the scroll
- region (lines 1..24) * * * *
-
- <CSI Pn M> delete n lines (D:1) * * *
- <CSI Pn L> insert n lines (D:1) * * *
- <CSI Pn P> delete n characters (D:1) * * *
- <CSI Pn @> insert n characters (D:1) * * *
-
- <CSI Pmode J> erase in display: mode is of * * * *
- D:0 (or none) cursor to end
- 1 beginning to cursor
- 2 entire screen
- <CSI Pmode K> erase in line: mode is of * * * *
- D:0 (or none) cursor to end
- 1 beginning to cursor
- 2 entire line
- <CSI Pn X> erase n characters * *
-
- <CSI pattribute m>
- set character attribute(s)
- D:0 (or none) clear all * * * *
- 1 set bold * * * *
- 4 set underline * * * *
- 5 set blink * * * *
- 7 set reverse * * * *
- 22 turn bold off only * *
- 24 turn underline off only * *
- 25 turn blinking off only * *
- 27 turn reverse off only * *
- (<CSI 0 ; 7 m> will reset the attributes and then set reverse)
-
- <ESC # 5> single-width single-height line * * * *
- <ESC # 6> double-width single-height line * * * *
- <ESC # 3> double-width double-height top * * * *
- <ESC # 4> double-width double-height bottom* * * *
-
- <ESC 7> save cursor position and attribs * * * *
- <ESC 8> restore to saved values * * * *
-
- <CSI 4 h> set insert mode * * *
- <CSI 4 l> set overtype mode * * *
-
- <CSI ? 25 h> visible cursor * *
- <CSI ? 25 l> invisible cursor * *
-
- <CSI 2 h> lock keyboard * * * *
- <CSI 2 l> unlock keyboard * * * *
-
- <CSI 20 h> new line mode * * * *
- <CSI 20 l> ine feed mode * * * *
-
- <CSI ? 8 h> autorepeat key * * * *
- <CSI ? 8 l> no autorepeat * * * *
-
- <CSI ? 7 h> autowrap key * * * *
- <CSI ? 7 l> no autowrap * * * *
-
- <CSI ? 1 h> cursor application keys * * * *
- <CSI ? 1 l> cursor keys * * * *
-
- <ESC => application numeric block * * * *
- <ESC ">"> numeric block * * * *
-
- <CSI ? 5 h> light background * * * *
- <CSI ? 5 l> dark background * * * *
-
- <CSI ? 3 h> 132 columns * * * *
- <CSI ? 3 l> 80 columns * * * *
-
- <CSI ? 6 h> move cursor withing margins * * * *
- <CSI ? 6 l> move cursor absolute * * * *
-
- <CSI c> (primary) device attrib. request * * * *
- response is: <CSI ? plist c>
- <CSI 6 n> cursor position report * * * *
- response is: <CSI Pline;Pcolumn R>
-
-
-
-
- user definable keys (UDKs) on vt2x0 and vt3x0:
- ----------------------------------------------
-
- <DCS Pclear ; Plock | Pkey1 / Pstring1 ; ... Pkeyn / Pstringn ST>
-
- clear : D:0: clear all keys before loading
- 1: clear this key before loading
-
- lock : 0: lock the keys
- D:1: do not lock the keys
-
- key : numeric key value send in escape sequence of this key.
- see: "Control commands sent FROM the terminal"
-
- string: string to send encoded as two digits-per-character hexadecimals
-
-
- download a soft character font for the vt2x0 and vt3x0:
- -------------------------------------------------------
-
- <DCS Pfn ; Pcn ; Pec ; Pcmw ; Pw ; Pt ; Pcmh ; Pcss ; {
- Dscs Sxbp1 ; Sxbp2 ; ... ; Sxbpn ST>
-
- fn : font number 0 or 1
- cn : starting character (position of first character send
- in character set) 0..95
- ec : erase control 0..2
- cmw: character matrix width 0..6
- w : font width 0..2
- t : text or full-cell 0..2
- cmh: character matrix height 0..12
- css: character set size 0..1
- Dscs:define character set name <"space"../ "space"../ F>
- Sxbpn: sixel bit patterns
- <sixel ; sixel ; .. ; sixel / sixel ; ... >
-
-
-
-
- Control commands sent FROM the terminal:
-
- sequence key 1 1a 2 3
- ------------- -------------------------------- - - - -
- <CSI A> cursor key up } * * * *
- <CSI B> cursor key down } cursor key * * * *
- <CSI C> cursor key right } mode * * * *
- <CSI C> cursor key left } * * * *
-
- <SS3 A> cursor key up } application * * * *
- <SS3 B> cursor key down } cursor key * * * *
- <SS3 C> cursor key right } mode * * * *
- <SS3 C> cursor key left } * * * *
-
-
- <SS3 P> PF1 * * * *
- <SS3 Q> PF2 * * * *
- <SS3 R> PF3 * * * *
- <SS3 S> PF4 * * * *
-
- <CSI 1 ~> Find * *
- <CSI 2 ~> Insert Here * *
- <CSI 3 ~> Remove * *
- <CSI 4 ~> Select * *
- <CSI 5 ~> Prev Screen * *
- <CSI 6 ~> Next Screen * *
- <CSI 1 7 ~> F6 * *
- <CSI 1 8 ~> F7 * *
- <CSI 1 9 ~> F8 * *
- <CSI 2 0 ~> F9 * *
- <CSI 2 1 ~> F10 * *
- <CSI 2 3 ~> F11 * *
- <CSI 2 4 ~> F12 * *
- <CSI 2 5 ~> F13 * *
- <CSI 2 6 ~> F14 * *
- <CSI 2 8 ~> Help * *
- <CSI 2 9 ~> Do * *
- <CSI 3 1 ~> F17 * *
- <CSI 3 2 ~> F18 * *
- <CSI 3 3 ~> F19 * *
- <CSI 3 4 ~> F20 * *
-
-
- key codes of the numeric keypad in: * * * *
- numeric application mode key
- --- ------- ---
- <0> <SS3 p> 0
- <1> <SS3 q> 1
- <2> <SS3 r> 2
- <3> <SS3 s> 3
- <4> <SS3 t> 4
- <5> <SS3 u> 5
- <6> <SS3 v> 6
- <7> <SS3 w> 7
- <8> <SS3 x> 8
- <9> <SS3 y> 9
- <-> <SS3 m> -
- <,> <SS3 l> ,
- <.> <SS3 n> .
- <CR> <SS3 M> enter
-
- //////////////////////////////////////////////////////
- // Robert Frank //
- // frank@urz.unibas.ch (061) 321 99 67 //
- // //
- // Institute for Informatics University Basel //
- // Mittlere Strasse 142 //
- // CH-4056 Basel //
- // Switzerland //
- //////////////////////////////////////////////////////
-